package br.cefetpe.tsi.game.desktop.ui.gui;

import java.io.File;

import javax.swing.filechooser.FileFilter;

public class ColorRoulletteFileFilter extends FileFilter {

	@Override
	public boolean accept(File f) {
		boolean ret = false;
		
	    if (f.isDirectory())
	    	ret = true;
    	else{
    		String fileName = f.getName();	
    		if (fileName.endsWith(".cr"))
    			ret = true;		
    	}    			
 
		return ret;
	}

	@Override
	public String getDescription() {
		return "Jogo Salvo do Carrossel de Cores";
	}

}
 